{% extends "account/base.html" %}

{# Load the tag library #}
{% load bootstrap4 %}

{% load i18n %}

{% block head_title %}{% trans "Change Password" %}{% endblock %}

{% block content %}
    <h1>{% trans "Change Password" %}</h1>

    <form method="POST" action="{% url 'account_change_password' %}" class="password_change">
        {% csrf_token %}
        {% bootstrap_form form %}
<!--          如果翻译不能用 trans 就用 _()-->
        {% bootstrap_button content=_("Change Password") button_type="submit" button_class="btn-primary"  %}
<!--        <button type="submit" name="action">{% trans "Change Password" %}</button>-->
        <a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
    </form>
{% endblock %}
